package com.rainsoft.center.isec.stream.library.entity.hbase.impl;

import com.alibaba.fastjson.annotation.JSONField;
import com.rainsoft.center.isec.common.annotation.HTable;
import com.rainsoft.center.isec.stream.library.entity.hbase.BaseLibEntity;

import java.sql.Timestamp;


@HTable(tableName = "vid_loginout", family = "info", topicName = {"vid_loginout"})
public class VidLoginout extends BaseLibEntity {
	@JSONField(name = "REMOTEPORT")
	private String remoteport;

	@JSONField(name = "BCPNAME")
	private String bcpname;

	@JSONField(name = "ZIPNAME")
	private String zipname;

	@JSONField(name = "SESSIONID")
	private String sessionid;

	@JSONField(name = "CAPTIME")
	private Timestamp captime;

	@JSONField(name = "COMPUTERMAC")
	private String computermac;

	@JSONField(name = "EXTENT_ACCOUNT1")
	private String extentAccount1;

	@JSONField(name = "DATA_SOURCE")
	private String dataSource;

	@JSONField(name = "EXTENT_ACCOUNT2")
	private String extentAccount2;

	@JSONField(name = "TERMINAL_LATITUDE")
	private String terminalLatitude;

	@JSONField(name = "ROWNUMBER")
	private String rownumber;

	@JSONField(name = "COMPUTERIP")
	private String computerip;

	@JSONField(name = "MACHINE_ID")
	private String machineId;

	@JSONField(name = "USERNAME")
	private String username;

	@JSONField(name = "COMPUTERPORT")
	private String computerport;

	@JSONField(name = "IMSI_CODE")
	private String imsiCode;

	@JSONField(name = "TERMINAL_LONGITUDE")
	private String terminalLongitude;

	@JSONField(name = "ACTIONTYPE")
	private String actiontype;

	@JSONField(name = "MANUFACTURER_CODE")
	private String manufacturerCode;

	@JSONField(name = "UNAME")
	private String uname;

	@JSONField(name = "PASSWORD")
	private String password;


	@JSONField(name = "UALIAS")
	private String ualias;

	@JSONField(name = "IMEI_CODE")
	private String imeiCode;

	@JSONField(name = "SERVICETYPE")
	private String servicetype;

	@JSONField(name = "REMOTEIP")
	private String remoteip;

	public String getRemoteport() {
		return remoteport;
	}

	public void setRemoteport(String remoteport) {
		this.remoteport = remoteport;
	}

	public String getBcpname() {
		return bcpname;
	}

	public void setBcpname(String bcpname) {
		this.bcpname = bcpname;
	}


	public String getZipname() {
		return zipname;
	}

	public void setZipname(String zipname) {
		this.zipname = zipname;
	}

	public String getSessionid() {
		return sessionid;
	}

	public void setSessionid(String sessionid) {
		this.sessionid = sessionid;
	}

	public Timestamp getCaptime() {
		return captime;
	}

	public void setCaptime(Timestamp captime) {
		this.captime = captime;
	}

	public String getComputermac() {
		return computermac;
	}

	public void setComputermac(String computermac) {
		this.computermac = computermac;
	}


	public String getExtentAccount1() {
		return extentAccount1;
	}

	public void setExtentAccount1(String extentAccount1) {
		this.extentAccount1 = extentAccount1;
	}

	public String getDataSource() {
		return dataSource;
	}

	public void setDataSource(String dataSource) {
		this.dataSource = dataSource;
	}

	public String getExtentAccount2() {
		return extentAccount2;
	}

	public void setExtentAccount2(String extentAccount2) {
		this.extentAccount2 = extentAccount2;
	}

	public String getTerminalLatitude() {
		return terminalLatitude;
	}

	public void setTerminalLatitude(String terminalLatitude) {
		this.terminalLatitude = terminalLatitude;
	}

	public String getRownumber() {
		return rownumber;
	}

	public void setRownumber(String rownumber) {
		this.rownumber = rownumber;
	}

	public String getComputerip() {
		return computerip;
	}

	public void setComputerip(String computerip) {
		this.computerip = computerip;
	}

	public String getMachineId() {
		return machineId;
	}

	public void setMachineId(String machineId) {
		this.machineId = machineId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getComputerport() {
		return computerport;
	}

	public void setComputerport(String computerport) {
		this.computerport = computerport;
	}

	public String getImsiCode() {
		return imsiCode;
	}

	public void setImsiCode(String imsiCode) {
		this.imsiCode = imsiCode;
	}

	public String getTerminalLongitude() {
		return terminalLongitude;
	}

	public void setTerminalLongitude(String terminalLongitude) {
		this.terminalLongitude = terminalLongitude;
	}

	public String getActiontype() {
		return actiontype;
	}

	public void setActiontype(String actiontype) {
		this.actiontype = actiontype;
	}

	public String getManufacturerCode() {
		return manufacturerCode;
	}

	public void setManufacturerCode(String manufacturerCode) {
		this.manufacturerCode = manufacturerCode;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUalias() {
		return ualias;
	}

	public void setUalias(String ualias) {
		this.ualias = ualias;
	}

	public String getImeiCode() {
		return imeiCode;
	}

	public void setImeiCode(String imeiCode) {
		this.imeiCode = imeiCode;
	}

	public String getServicetype() {
		return servicetype;
	}

	public void setServicetype(String servicetype) {
		this.servicetype = servicetype;
	}

	public String getRemoteip() {
		return remoteip;
	}

	public void setRemoteip(String remoteip) {
		this.remoteip = remoteip;
	}

	@Override
	public String getRowKey() {
		return uname + "_" + servicetype + "_" + captime.getTime()/1000;
	}
}